export function replaceAll(originalString: string, patternString: string | RegExp, substitution: string) {
    return originalString.split(patternString).join(substitution)
}

export function insertAfter<T>(arr: Array<T>, item: T, pos: number): Array<T> {
    const before = arr.slice(0, pos);
    const after = arr.slice(pos);
    return before.concat([item]).concat(after)
}

